package inet.app.vod.object;

import inet.app.vod.config.AppConstants;

public class NewModel extends SlideObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String content;

	public NewModel() {
	}

	public NewModel(String id, String img, String title) {
		super(id, img, title);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImg() {
		if (!img.startsWith("http")) {
			return AppConstants.HOST_IMAGE_URL + img;
		}
		return img;
	}

	public void setImg(String img) {
		if (!img.startsWith("http")) {
			this.img = AppConstants.HOST_IMAGE_URL + img;
		} else {
			this.img = img;
		}
	}

	@Override
	public String toString() {
		return "NewModel [content=" + content + ", id=" + id + ", img=" + img
				+ ", title=" + title + ", fbLink=" + fbLink + "]";
	}

}
